package com.africanmoviesmobile.webservice;

import org.json.JSONObject;

import android.content.Context;

import com.africanmoviesmobile.webservice.inf.Filmography;

public class AmmFilmography extends AmmWebService implements Filmography {

	private JSONObject _jsonObject;
	
	public AmmFilmography(JSONObject jsonObject, Context context) {
		super(context);
		_jsonObject = jsonObject;
	}
	
	public int getMovieId() {
		return _jsonObject.optInt("movie_id");
	}

	public String getMovieTitle() {
		return _jsonObject.optString("movie_title");
	}

	public String getMovieYear() {
		return _jsonObject.optString("year");
	}

	public String getRoles() {
		return _jsonObject.optString("roles");
	}

	public String getMovieCover() {
		return _jsonObject.optString("cover_url");
	}

}
